﻿using HotelManager.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HotelManager.Service
{
    public class ResideStateService: IResideStateService
    {
        private readonly HttpRestClient client;
        public ResideStateService(HttpRestClient client)
        {
            this.client = client;
        }
        public List<ResideState> GetAll()
        {
            BaseRequest request = new BaseRequest();
            request.Method = RestSharp.Method.Get;
            StringBuilder sb = new StringBuilder();
            request.Route = $"api/ResideState/List";
            return client.ExecuteGetSync<List<ResideState>>(request);
        }
    }
}
